#ifndef _WIFI_APP_H_
#define _WIFI_APP_H_

#include <stdint.h>
#include <stdbool.h>

#define SMART_CONFIG_RECV_SSID_TIMEOUT   30000
#define SMART_CONFIG_RECV_GOTIP_TIMEOUT  5000
#define SMART_CONFIG_DELAY_TIMEOUT       5000
#define SMART_CONFIG_ENTIRE_TIMEOUT      (SMART_CONFIG_RECV_SSID_TIMEOUT + SMART_CONFIG_RECV_GOTIP_TIMEOUT + SMART_CONFIG_DELAY_TIMEOUT + 5)

typedef enum
{
	WIFI_CONNECT_NWK_ING,
	WIFI_CONNECT_SERVER_FAIL,
	WIFI_CONNECT_SERVER_SUCESS,
} WifiConnectStatus_t;

void WifiNetworkTask(void);

WifiConnectStatus_t GetWifiConnectStatus(void);
bool GetNewVersionInfo(char *version, uint32_t *binSize);

void StartSmartCfgWifi(void);
#endif

